"use strict";
layui.define([], function (exprots) {
    let okMock = {
        api: {
            login: "https://www.easy-mock.com/mock/5d5d0dd46cfcbd1b8627bf1d/ok-admin-v2.0/login",
            bsgrid: "http://rap2api.taobao.org/app/mock/233041/bsgrid",
            datatables: "http://rap2api.taobao.org/app/mock/233041/datatables",
            listUser: "http://rap2api.taobao.org/app/mock/233041/user/listUser",
            listRole: "http://rap2api.taobao.org/app/mock/233041/role/listRole",
            listArticle: "http://rap2api.taobao.org/app/mock/233041/article/listArticle",
            listMessage: "http://rap2api.taobao.org/app/mock/233041/message/listMessage",
            listProduct: "http://rap2api.taobao.org/app/mock/233041/product/listProduct",
            listDownload: "http://rap2api.taobao.org/app/mock/233041/download/listDownload",
            listLink: "http://rap2api.taobao.org/app/mock/233041/link/listLink",
            listTask: "http://rap2api.taobao.org/app/mock/233041/task/listTask",
            listImage: "http://rap2api.taobao.org/app/mock/233041/image/listImage",
            listBbs: "http://rap2api.taobao.org/app/mock/233041/bbs/listBbs",

            // system
            user: {
                //list: "http://rap2api.taobao.org/app/mock/233041/user/list",
                list: '/ajax/admin/sysUser/list',
                listSearch: '/ajax/admin/sysUser/listSearch',
                create:'/ajax/admin/sysUser/create',
                checkUsernameExist: '/ajax/admin/sysUser/checkUsernameExist',
                deleteByIds:'/ajax/admin/sysUser/deleteByIds',
                update:'/ajax/admin/sysUser/update',
                regrantUserRoles:'/ajax/admin/sysUser/regrantUserRoles',
                initializePassword:'/ajax/admin/sysUser/initializePassword',
                updateUserStatus:'/ajax/admin/sysUser/updateUserStatus'
            },
            role: {
                //list: "http://rap2api.taobao.org/app/mock/233041/role/list"
                list: "/ajax/admin/sysRole/list",
                findTransferList: '/ajax/admin/sysRole/findTransferList',
                create: '/ajax/admin/sysRole/create',
                checkRoleCodeExist: '/ajax/admin/sysRole/checkRoleCodeExist',
                deleteByIds:'/ajax/admin/sysRole/deleteByIds',
                update: '/ajax/admin/sysRole/update',
                reGrantMenus: '/ajax/admin/sysRole/reGrantMenus',//给指定用户分配菜单
                findMenusByRoleId: '/ajax/admin/sysRole/findMenusByRoleId',//根据 角色ID 查询 所有菜单
            },
            menu: {
                //list: "https://easy-mock.com/mock/5d0ce725424f15399a6c2068/okadmin/menu/list",
                list:'/ajax/admin/sysMenu/list',
                userMenuList:"/ajax/admin/sysMenu/findOkTabMenuListByUsername",
                selectBoxList: '/ajax/admin/sysMenu/findNonButtonSelectBoxList',
                createAndGrant: '/ajax/admin/sysMenu/createAndGrant',
                updateAndGrant: '/ajax/admin/sysMenu/updateAndGrant',
                rePerms: '/ajax/admin/sysMenu/rePerms',
                userMenuButtons: '/ajax/admin/sysMenu/findMenuButtons',//查询当前用户所有的按钮权限，用于页面显示
                // 批量删除数据
                deleteByIds: '/ajax/admin/sysMenu/deleteByIds',
                laytree: '/ajax/admin/sysMenu/laytree',
                dtree: '/ajax/admin/sysMenu/dtree',
                treeTable: '/ajax/admin/sysMenu/treeTable',
            },
            permission: {
                //list: "http://rap2api.taobao.org/app/mock/233041/permission/list",
                selectBoxList: '/ajax/admin/sysPermission/findPermissionListSelectDisplay',
                list: '/ajax/admin/sysPermission/list',
                dtree: '/ajax/admin/sysPermission/dtree',
                create: '/ajax/admin/sysPermission/create',
                update: '/ajax/admin/sysPermission/update',
                deleteByIds:'/ajax/admin/sysPermission/deleteByIds',
                findByUrlId:'/ajax/admin/sysPermission/findByUrlId',
            },
            url: {
                list: '/ajax/admin/sysUrl/list',
                createAndGrant: '/ajax/admin/sysUrl/createAndGrant',
                updateAndGrant: '/ajax/admin/sysUrl/updateAndGrant',
                deleteByIds:'/ajax/admin/sysUrl/deleteByIds',
                checkExists: '/ajax/admin/sysUrl/checkExists',
            },
            dept: {
                list: '/ajax/admin/sysDept/list',
                dtree:'/ajax/admin/sysDept/dtree',
                create: '/ajax/admin/sysDept/create',
                update: '/ajax/admin/sysDept/update',
                deleteByIds:'/ajax/admin/sysDept/deleteByIds',
                checkExists: '/ajax/admin/sysDept/checkExists',
            },
            post: {
                list: '/ajax/admin/sysPost/list',
                //dtree:'/ajax/admin/sysPost/dtree',
                selectBoxList:'/ajax/admin/sysPost/selectBoxList',
                checkExists: '/ajax/admin/sysPost/checkExists',
                create: '/ajax/admin/sysPost/create',
                update: '/ajax/admin/sysPost/update',
                deleteByIds:'/ajax/admin/sysPost/deleteByIds',
            },
            logininfor: {//登录日志
                list: '/ajax/admin/sysLoginInfor/list',
                deleteByIds:'/ajax/admin/sysLoginInfor/deleteByIds',
            },
            operLog: {//登录日志
                list: '/ajax/admin/sysOperLog/list',
                deleteByIds:'/ajax/admin/sysOperLog/deleteByIds',
            },
            server: {//服务器性能监控
                getServerInfo: '/ajax/admin/sysServer/getServerInfo',
            },








            // business
            article: {
                list: "http://rap2api.taobao.org/app/mock/233041/article/list"
            },
            task: {
                list: "http://rap2api.taobao.org/app/mock/233041/task/list"
            },
            link: {
                list: "http://rap2api.taobao.org/app/mock/233041/link/list"
            },
            product: {
                list: "http://rap2api.taobao.org/app/mock/233041/product/list"
            },
            log: {
                list: "https://easy-mock.com/mock/5d0ce725424f15399a6c2068/okadmin/log/list"
            },
            message: {
                list: "http://rap2api.taobao.org/app/mock/233041/message/list"
            },
            download: {
                list: "http://rap2api.taobao.org/app/mock/233041/download/list"
            },
            bbs: {
                list: "http://rap2api.taobao.org/app/mock/233041/bbs/list"
            }
        }
    };
    exprots("okMock", okMock);
});
